import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/tag/nfctech.d.ts',
  content: "/*\n * Copyright (c) 2021-2022 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ConnectivityKit\n */\nimport tag from '../@ohos.nfc.tag';\nimport { TagSession } from './tagSession';\nimport { AsyncCallback } from '../@ohos.base';\n/**\n * Provides interfaces to control the read and write of tags that support the NFC-A technology.\n * <p>This class is inherited from the {@link TagSession} abstract class, and provides methods to create\n * {@code NfcATag} objects and obtain the ATQA and SAK.\n *\n * @typedef NfcATag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @since 7\n */\n/**\n * Provides interfaces to control the read and write of tags that support the NFC-A technology.\n * <p>This class is inherited from the {@link TagSession} abstract class, and provides methods to create\n * {@code NfcATag} objects and obtain the ATQA and SAK.\n *\n * @typedef NfcATag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @atomicservice\n * @since 12\n */\nexport interface NfcATag extends TagSession {\n    /**\n     * Obtains the SAK of an NFC-A tag.\n     *\n     * @returns { number } Returns the SAK of the NFC-A tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 7\n     */\n    /**\n     * Obtains the SAK of an NFC-A tag.\n     *\n     * @returns { number } Returns the SAK of the NFC-A tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getSak(): number;\n    /**\n     * Obtains the ATQA of an NFC-A tag.\n     *\n     * @returns { number[] } Returns the ATQA of the NFC-A tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 7\n     */\n    /**\n     * Obtains the ATQA of an NFC-A tag.\n     *\n     * @returns { number[] } Returns the ATQA of the NFC-A tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getAtqa(): number[];\n}\n/**\n * Provides interfaces to create an {@code NfcBTag} and perform I/O operations on the tag.\n * <p>This class inherits from the {@link TagSession} abstract class and provides interfaces to create an\n * {@code NfcBTag} and obtain the tag information.\n *\n * @typedef NfcBTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @since 7\n */\n/**\n * Provides interfaces to create an {@code NfcBTag} and perform I/O operations on the tag.\n * <p>This class inherits from the {@link TagSession} abstract class and provides interfaces to create an\n * {@code NfcBTag} and obtain the tag information.\n *\n * @typedef NfcBTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @atomicservice\n * @since 12\n */\nexport interface NfcBTag extends TagSession {\n    /**\n     * Obtains the application data of a tag.\n     *\n     * @returns { number[] } Returns the application data of the tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 7\n     */\n    /**\n     * Obtains the application data of a tag.\n     *\n     * @returns { number[] } Returns the application data of the tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getRespAppData(): number[];\n    /**\n     * Obtains the protocol information of a tag.\n     *\n     * @returns { number[] } Returns the protocol information of the tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 7\n     */\n    /**\n     * Obtains the protocol information of a tag.\n     *\n     * @returns { number[] } Returns the protocol information of the tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getRespProtocol(): number[];\n}\n/**\n * Provides methods for creating an NFC-F tag, obtaining tag information, and controlling tag read and write.\n * <p>This class inherits from the {@link TagSession} abstract class and provides interfaces to create an\n * {@code NfcFTag} and obtain the tag information.\n *\n * @typedef NfcFTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @since 7\n */\n/**\n * Provides methods for creating an NFC-F tag, obtaining tag information, and controlling tag read and write.\n * <p>This class inherits from the {@link TagSession} abstract class and provides interfaces to create an\n * {@code NfcFTag} and obtain the tag information.\n *\n * @typedef NfcFTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @atomicservice\n * @since 12\n */\nexport interface NfcFTag extends TagSession {\n    /**\n     * Obtains the system code from this {@code NfcFTag} instance.\n     *\n     * @returns { number[] } Returns the system code.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 7\n     */\n    /**\n     * Obtains the system code from this {@code NfcFTag} instance.\n     *\n     * @returns { number[] } Returns the system code.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getSystemCode(): number[];\n    /**\n     * Obtains the PMm (consisting of the IC code and manufacturer parameters) from this {@code NfcFTag} instance.\n     *\n     * @returns { number[] } Returns the PMm.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 7\n     */\n    /**\n     * Obtains the PMm (consisting of the IC code and manufacturer parameters) from this {@code NfcFTag} instance.\n     *\n     * @returns { number[] } Returns the PMm.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getPmm(): number[];\n}\n/**\n * Provides methods for creating an NFC-V tag, obtaining tag information, and controlling tag read and write.\n * <p>This class inherits from the {@link TagSession} abstract class and provides interfaces to create an\n * {@code NfcVTag} and obtain the tag information.\n *\n * @typedef NfcVTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @since 7\n */\n/**\n * Provides methods for creating an NFC-V tag, obtaining tag information, and controlling tag read and write.\n * <p>This class inherits from the {@link TagSession} abstract class and provides interfaces to create an\n * {@code NfcVTag} and obtain the tag information.\n *\n * @typedef NfcVTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @atomicservice\n * @since 12\n */\nexport interface NfcVTag extends TagSession {\n    /**\n     * Obtains the response flags from this {@code NfcVTag} instance.\n     *\n     * @returns { number } Returns the response flags.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 7\n     */\n    /**\n     * Obtains the response flags from this {@code NfcVTag} instance.\n     *\n     * @returns { number } Returns the response flags.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getResponseFlags(): number;\n    /**\n     * Obtains the response flags from this {@code NfcVTag} instance.\n     *\n     * @returns { number } Returns the response flags.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 7\n     */\n    /**\n     * Obtains the response flags from this {@code NfcVTag} instance.\n     *\n     * @returns { number } Returns the response flags.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getDsfId(): number;\n}\n/**\n * Provides methods for accessing IsoDep tag.\n *\n * @typedef IsoDepTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @since 9\n */\n/**\n * Provides methods for accessing IsoDep tag.\n *\n * @typedef IsoDepTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @atomicservice\n * @since 12\n */\nexport interface IsoDepTag extends TagSession {\n    /**\n     * Gets IsoDep Historical bytes of the tag, which is based on NfcA RF technology.\n     * It could be null if not based on NfcA.\n     *\n     * @returns { number[] } Returns the Historical bytes, the length could be 0.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Gets IsoDep Historical bytes of the tag, which is based on NfcA RF technology.\n     * It could be null if not based on NfcA.\n     *\n     * @returns { number[] } Returns the Historical bytes, the length could be 0.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getHistoricalBytes(): number[];\n    /**\n     * Gets IsoDep HiLayer Response bytes of the tag, which is based on NfcB RF technology.\n     * It could be null if not based on NfcB.\n     *\n     * @returns { number[] } Returns HiLayer Response bytes, the length could be 0.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Gets IsoDep HiLayer Response bytes of the tag, which is based on NfcB RF technology.\n     * It could be null if not based on NfcB.\n     *\n     * @returns { number[] } Returns HiLayer Response bytes, the length could be 0.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getHiLayerResponse(): number[];\n    /**\n     * Checks if extended apdu length supported or not.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @returns { Promise<boolean> } Returns true if extended apdu length supported, otherwise false.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Checks if extended apdu length supported or not.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @returns { Promise<boolean> } Returns true if extended apdu length supported, otherwise false.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    isExtendedApduSupported(): Promise<boolean>;\n    /**\n     * Checks if extended apdu length supported or not.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { AsyncCallback<boolean> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Checks if extended apdu length supported or not.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { AsyncCallback<boolean> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    isExtendedApduSupported(callback: AsyncCallback<boolean>): void;\n}\n/**\n * Provides methods for Message of NDEF.\n *\n * @typedef NdefMessage\n * @syscap SystemCapability.Communication.NFC.Tag\n * @since 9\n */\n/**\n * Provides methods for Message of NDEF.\n *\n * @typedef NdefMessage\n * @syscap SystemCapability.Communication.NFC.Tag\n * @atomicservice\n * @since 12\n */\nexport interface NdefMessage {\n    /**\n     * Obtains all records of an NDEF message.\n     *\n     * @returns { tag.NdefRecord[] } Records the list of NDEF records.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Obtains all records of an NDEF message.\n     *\n     * @returns { tag.NdefRecord[] } Records the list of NDEF records.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getNdefRecords(): tag.NdefRecord[];\n}\n/**\n * Provides methods for accessing NDEF tag.\n *\n * @typedef NdefTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @since 9\n */\n/**\n * Provides methods for accessing NDEF tag.\n *\n * @typedef NdefTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @atomicservice\n * @since 12\n */\nexport interface NdefTag extends TagSession {\n    /**\n     * Gets the type of NDEF tag.\n     *\n     * @returns { tag.NfcForumType } The type of NDEF tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Gets the type of NDEF tag.\n     *\n     * @returns { tag.NfcForumType } The type of NDEF tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getNdefTagType(): tag.NfcForumType;\n    /**\n     * Gets the NDEF message that was read from NDEF tag when tag discovery.\n     *\n     * @returns { NdefMessage } The instance of NdefMessage.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Gets the NDEF message that was read from NDEF tag when tag discovery.\n     *\n     * @returns { NdefMessage } The instance of NdefMessage.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getNdefMessage(): NdefMessage;\n    /**\n     * Checks if NDEF tag is writable.\n     *\n     * @returns { boolean } Returns true if the tag is writable, otherwise returns false.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Checks if NDEF tag is writable.\n     *\n     * @returns { boolean } Returns true if the tag is writable, otherwise returns false.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    isNdefWritable(): boolean;\n    /**\n     * Reads NDEF message on this tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @returns { Promise<NdefMessage> } The NDEF message in tag.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Reads NDEF message on this tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @returns { Promise<NdefMessage> } The NDEF message in tag.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    readNdef(): Promise<NdefMessage>;\n    /**\n     * Reads NDEF message on this tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { AsyncCallback<NdefMessage> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Reads NDEF message on this tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { AsyncCallback<NdefMessage> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    readNdef(callback: AsyncCallback<NdefMessage>): void;\n    /**\n     * Writes NDEF message into this tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } msg - The NDEF message to be written.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Writes NDEF message into this tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } msg - The NDEF message to be written.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    writeNdef(msg: NdefMessage): Promise<void>;\n    /**\n     * Writes NDEF message into this tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } msg - The NDEF message to be written.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Writes NDEF message into this tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } msg - The NDEF message to be written.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    writeNdef(msg: NdefMessage, callback: AsyncCallback<void>): void;\n    /**\n     * Checks NDEF tag can be set read-only.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @returns { boolean } Returns true if the tag can be set readonly, otherwise returns false.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Checks NDEF tag can be set read-only.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @returns { boolean } Returns true if the tag can be set readonly, otherwise returns false.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    canSetReadOnly(): boolean;\n    /**\n     * Sets the NDEF tag read-only.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Sets the NDEF tag read-only.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    setReadOnly(): Promise<void>;\n    /**\n     * Sets the NDEF tag read-only.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Sets the NDEF tag read-only.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    setReadOnly(callback: AsyncCallback<void>): void;\n    /**\n     * Converts the NFC forum type into string defined in NFC forum.\n     *\n     * @param { tag.NfcForumType } type - NFC forum type of NDEF tag.\n     * @returns { string } The NFC forum string type.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Converts the NFC forum type into string defined in NFC forum.\n     *\n     * @param { tag.NfcForumType } type - NFC forum type of NDEF tag.\n     * @returns { string } The NFC forum string type.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getNdefTagTypeString(type: tag.NfcForumType): string;\n}\n/**\n * Provides methods for accessing MifareClassic tag.\n *\n * @typedef MifareClassicTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @since 9\n */\n/**\n * Provides methods for accessing MifareClassic tag.\n *\n * @typedef MifareClassicTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @atomicservice\n * @since 12\n */\nexport interface MifareClassicTag extends TagSession {\n    /**\n     * Authenticates a sector with the key.Only successful authentication sector can be operated.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } sectorIndex - Index of sector to authenticate.\n     * @param { number[] } key - The key(6-bytes) to authenticate.\n     * @param { boolean } isKeyA - KeyA flag. true means KeyA, otherwise KeyB.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Authenticates a sector with the key. Only successful authentication sector can be operated.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } sectorIndex - Index of sector to authenticate.\n     * @param { number[] } key - The key(6-bytes) to authenticate.\n     * @param { boolean } isKeyA - KeyA flag. true means KeyA, otherwise KeyB.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise<void>;\n    /**\n     * Authenticates a sector with the key.Only successful authentication sector can be operated.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } sectorIndex - Index of sector to authenticate.\n     * @param { number[] } key - The key(6-bytes) to authenticate.\n     * @param { boolean } isKeyA - KeyA flag. true means KeyA, otherwise KeyB.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Authenticates a sector with the key. Only successful authentication sector can be operated.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } sectorIndex - Index of sector to authenticate.\n     * @param { number[] } key - The key(6-bytes) to authenticate.\n     * @param { boolean } isKeyA - KeyA flag. true means KeyA, otherwise KeyB.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback<void>): void;\n    /**\n     * Reads a block, one block size is 16 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to read.\n     * @returns { Promise<number[]> } Returns the block data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Reads a block, one block size is 16 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to read.\n     * @returns { Promise<number[]> } Returns the block data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    readSingleBlock(blockIndex: number): Promise<number[]>;\n    /**\n     * Reads a block, one block size is 16 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to read.\n     * @param { AsyncCallback<number[]> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Reads a block, one block size is 16 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to read.\n     * @param { AsyncCallback<number[]> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    readSingleBlock(blockIndex: number, callback: AsyncCallback<number[]>): void;\n    /**\n     * Writes a block, one block size is 16 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to write.\n     * @param { number[] } data - The block data to write.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Writes a block, one block size is 16 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to write.\n     * @param { number[] } data - The block data to write.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    writeSingleBlock(blockIndex: number, data: number[]): Promise<void>;\n    /**\n     * Writes a block, one block size is 16 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to write.\n     * @param { number[] } data - The block data to write.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Writes a block, one block size is 16 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to write.\n     * @param { number[] } data - The block data to write.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback<void>): void;\n    /**\n     * Increments the contents of a block, and stores the result in the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to increment.\n     * @param { number } value - The value to increment, none-negative.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Increments the contents of a block, and stores the result in the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to increment.\n     * @param { number } value - The value to increment, none-negative.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    incrementBlock(blockIndex: number, value: number): Promise<void>;\n    /**\n     * Increments the contents of a block, and stores the result in the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to increment.\n     * @param { number } value - The value to increment, none-negative.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Increments the contents of a block, and stores the result in the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to increment.\n     * @param { number } value - The value to increment, none-negative.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    incrementBlock(blockIndex: number, value: number, callback: AsyncCallback<void>): void;\n    /**\n     * Decreases the contents of a block, and stores the result in the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to decrease.\n     * @param { number } value - The value to decrease, none-negative.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Decreases the contents of a block, and stores the result in the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to decrease.\n     * @param { number } value - The value to decrease, none-negative.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    decrementBlock(blockIndex: number, value: number): Promise<void>;\n    /**\n     * Decreases the contents of a block, and stores the result in the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to decrease.\n     * @param { number } value - The value to decrease, none-negative.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Decreases the contents of a block, and stores the result in the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of block to decrease.\n     * @param { number } value - The value to decrease, none-negative.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    decrementBlock(blockIndex: number, value: number, callback: AsyncCallback<void>): void;\n    /**\n     * Writes the contents of the internal transfer buffer to a value block.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of value block to be written.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Writes the contents of the internal transfer buffer to a value block.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of value block to be written.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    transferToBlock(blockIndex: number): Promise<void>;\n    /**\n     * Writes the contents of the internal transfer buffer to a value block.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of value block to be written.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Writes the contents of the internal transfer buffer to a value block.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of value block to be written.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    transferToBlock(blockIndex: number, callback: AsyncCallback<void>): void;\n    /**\n     * Moves the contents of a block into the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of value block to be moved from.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Moves the contents of a block into the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of value block to be moved from.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    restoreFromBlock(blockIndex: number): Promise<void>;\n    /**\n     * Moves the contents of a block into the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of value block to be moved from.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Moves the contents of a block into the internal transfer buffer.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } blockIndex - The index of value block to be moved from.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    restoreFromBlock(blockIndex: number, callback: AsyncCallback<void>): void;\n    /**\n     * Gets the number of sectors in MifareClassic tag.\n     *\n     * @returns { number } Returns the number of sectors.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Gets the number of sectors in MifareClassic tag.\n     *\n     * @returns { number } Returns the number of sectors.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getSectorCount(): number;\n    /**\n     * Gets the number of blocks in the sector.\n     *\n     * @param { number } sectorIndex - The index of sector.\n     * @returns { number } Returns the number of blocks.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Gets the number of blocks in the sector.\n     *\n     * @param { number } sectorIndex - The index of sector.\n     * @returns { number } Returns the number of blocks.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getBlockCountInSector(sectorIndex: number): number;\n    /**\n     * Gets the type of the MifareClassic tag.\n     *\n     * @returns { tag.MifareClassicType } Returns type of MifareClassic tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Gets the type of the MifareClassic tag.\n     *\n     * @returns { tag.MifareClassicType } Returns type of MifareClassic tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getType(): tag.MifareClassicType;\n    /**\n     * Gets size of the tag in bytes.\n     *\n     * @returns { number } Returns the size of the tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Gets size of the tag in bytes.\n     *\n     * @returns { number } Returns the size of the tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getTagSize(): number;\n    /**\n     * Checks if the tag is emulated or not.\n     *\n     * @returns { boolean } Returns true if tag is emulated, otherwise false.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Checks if the tag is emulated or not.\n     *\n     * @returns { boolean } Returns true if tag is emulated, otherwise false.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    isEmulatedTag(): boolean;\n    /**\n     * Gets the first block of the specific sector.\n     *\n     * @param { number } sectorIndex - The index of sector.\n     * @returns { number } Returns index of first block in the sector.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Gets the first block of the specific sector.\n     *\n     * @param { number } sectorIndex - The index of sector.\n     * @returns { number } Returns index of first block in the sector.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getBlockIndex(sectorIndex: number): number;\n    /**\n     * Gets the sector index, that the sector contains the specific block.\n     *\n     * @param { number } blockIndex - The index of block.\n     * @returns { number } Returns the sector index.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Gets the sector index, that the sector contains the specific block.\n     *\n     * @param { number } blockIndex - The index of block.\n     * @returns { number } Returns the sector index.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getSectorIndex(blockIndex: number): number;\n}\n/**\n * Provides methods for accessing MifareUltralight tag.\n *\n * @typedef MifareUltralightTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @since 9\n */\n/**\n * Provides methods for accessing MifareUltralight tag.\n *\n * @typedef MifareUltralightTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @atomicservice\n * @since 12\n */\nexport interface MifareUltralightTag extends TagSession {\n    /**\n     * Reads 4 pages, total is 16 bytes. Page size is 4 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } pageIndex - The index of page to read.\n     * @returns { Promise<number[]> } Returns 4 pages data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Reads 4 pages, total is 16 bytes. Page size is 4 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } pageIndex - The index of page to read.\n     * @returns { Promise<number[]> } Returns 4 pages data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    readMultiplePages(pageIndex: number): Promise<number[]>;\n    /**\n     * Reads 4 pages, total is 16 bytes. Page size is 4 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } pageIndex - The index of page to read.\n     * @param { AsyncCallback<number[]> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Reads 4 pages, total is 16 bytes. Page size is 4 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } pageIndex - The index of page to read.\n     * @param { AsyncCallback<number[]> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    readMultiplePages(pageIndex: number, callback: AsyncCallback<number[]>): void;\n    /**\n     * Writes a page, total 4 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } pageIndex - The index of page to write.\n     * @param { number[] } data - The page data to write.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Writes a page, total 4 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } pageIndex - The index of page to write.\n     * @param { number[] } data - The page data to write.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    writeSinglePage(pageIndex: number, data: number[]): Promise<void>;\n    /**\n     * Writes a page, total 4 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } pageIndex - The index of page to write.\n     * @param { number[] } data - The page data to write.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Writes a page, total 4 bytes.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { number } pageIndex - The index of page to write.\n     * @param { number[] } data - The page data to write.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    writeSinglePage(pageIndex: number, data: number[], callback: AsyncCallback<void>): void;\n    /**\n     * Gets the type of the MifareUltralight tag.\n     *\n     * @returns { tag.MifareUltralightType } Returns the type of MifareUltralight tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Gets the type of the MifareUltralight tag.\n     *\n     * @returns { tag.MifareUltralightType } Returns the type of MifareUltralight tag.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    getType(): tag.MifareUltralightType;\n}\n/**\n * Provides methods for accessing NdefFormatable tag.\n *\n * @typedef NdefFormatableTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @since 9\n */\n/**\n * Provides methods for accessing NdefFormatable tag.\n *\n * @typedef NdefFormatableTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @atomicservice\n * @since 12\n */\nexport interface NdefFormatableTag extends TagSession {\n    /**\n     * Formats a tag as NDEF tag, writes NDEF message into the NDEF Tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } message - NDEF message to write while format. It can be null, then only format the tag.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Formats a tag as NDEF tag, writes NDEF message into the NDEF Tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } message - NDEF message to write while format. It can be null, then only format the tag.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    format(message: NdefMessage): Promise<void>;\n    /**\n     * Formats a tag as NDEF tag, writes NDEF message into the NDEF Tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } message - NDEF message to write while format. It can be null, then only format the tag.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Formats a tag as NDEF tag, writes NDEF message into the NDEF Tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } message - NDEF message to write while format. It can be null, then only format the tag.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    format(message: NdefMessage, callback: AsyncCallback<void>): void;\n    /**\n     * Formats a tag as NDEF tag, writes NDEF message into the NDEF Tag, then sets the tag readonly.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } message - NDEF message to write while format. It can be null, then only format the tag.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Formats a tag as NDEF tag, writes NDEF message into the NDEF Tag, then sets the tag readonly.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } message - NDEF message to write while format. It can be null, then only format the tag.\n     * @returns { Promise<void> } The void\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    formatReadOnly(message: NdefMessage): Promise<void>;\n    /**\n     * Formats a tag as NDEF tag, writes NDEF message into the NDEF Tag, then sets the tag readonly.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } message - NDEF message to write while format. It can be null, then only format the tag.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - Tag running state is abnormal in service.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @since 9\n     */\n    /**\n     * Formats a tag as NDEF tag, writes NDEF message into the NDEF Tag, then sets the tag readonly.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @param { NdefMessage } message - NDEF message to write while format. It can be null, then only format the tag.\n     * @param { AsyncCallback<void> } callback The callback.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The Tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 12\n     */\n    formatReadOnly(message: NdefMessage, callback: AsyncCallback<void>): void;\n}\n/**\n * Provides methods for accessing Barcode tag.\n *\n * @extends TagSession\n * @typedef BarcodeTag\n * @syscap SystemCapability.Communication.NFC.Tag\n * @atomicservice\n * @since 18\n */\nexport interface BarcodeTag extends TagSession {\n    /**\n     * Returns the barcode of a Barcode tag.\n     *\n     * @permission ohos.permission.NFC_TAG\n     * @returns { Promise<ArrayBuffer> } The barcode of tag.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 3100201 - The tag running state is abnormal in the service.\n     * @throws { BusinessError } 3100204 - The tag I/O operation failed.\n     * @syscap SystemCapability.Communication.NFC.Tag\n     * @atomicservice\n     * @since 18\n     */\n    getBarcode(): Promise<ArrayBuffer>;\n}\n",
}
export default FILE;